<?php /* Smarty version 2.6.26, created on 2013-04-09 01:37:38
         compiled from ../templates/user_regist.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', '../templates/user_regist.html', 231, false),array('modifier', 'U', '../templates/user_regist.html', 309, false),)), $this); ?>
<!DOCTYPE html>
<html><head>
	<meta charset="UTF-8">
	<title>コントロールパネル</title>
    <link href="./assets/styles/default.css" rel="stylesheet" />
	<script src="./assets/scripts/libs/jquery-1.7.1.min.js" type="text/javascript"></script>
	<script src="./assets/scripts/plugins/password_strength_plugin.js" type="text/javascript"></script>
	<script src="./assets/scripts/import.js" type="text/javascript"></script>
	<script src="./assets/scripts/plugins/zip2address.js" type="text/javascript"></script>
	<script type="text/javascript">
		$(function(){			
			$("#text_auth_pwd").passStrength({
				userid:			"#url",	//required override text_auth_user
				messageloc:		1			//before == 0 or after == 1
			});
		});
	</script>
</head>
<body>

<header id="dashboard_header">
	<h1>
    	<a href="index.php">コントロールパネル</a>
    </h1>
    <ul>
		<li id="rt_site">
			<a href="javascript:;"><img src="../site_0001/images/logo.jpg" />SITEMANAGE　デモサイトA</a>
			<span><a href="../site_0001/" target="_blank">サイトを確認</a></span>
		</li>
    	<li id="rt_admin">
    		<a href="javascript:;">
    			<img src="./assets/images/common/header/blank_face.gif" />
    			おなべ
    		</a>
    	</li>
    	<li id="rt_dashboard">
    		<a href="index.php">Dash Board</a>
    	</li>
    	<li id="rt_logout">
    		<form id="form_logout" action="logout.php" method="post">
    			<input type="submit" id="button_logout" value="Logout" />
    		</form>
    	</li>
    </ul>
</header>

<div id="container">
	<aside id="accordion">
    	<div id="aside_inner">
    		<p><a href="javascript:;">→</a></p>
            <ul id="side_module_0" class="icon_site_m">
            	<li><a href="javascript:;"><span>サイト管理</span></a></li>
                <ol>
                    <li><a href="site_index.html">サイト一覧</a></li>
                    <li><a href="site_form.html">サイト登録</a></li>
                </ol>
            </ul>

            <ul id="side_module_1" class="icon_staff_m">
            	<li><a href="javascript:;"><span>スタッフ管理</span></a></li>
                <ol>
                    <li><a href="staff_index.html">スタッフ検索</a></li>
                    <li><a href="staff_form.html">スタッフ登録</a></li>
                </ol>
            </ul>

            <ul id="side_module_2" class="icon_category_m">
            	<li><a href="javascript:;"><span>カテゴリ管理</span></a></li>
                <ol>
                    <li><a href="category_index.html">カテゴリマスタ</a></li>
                </ol>
            </ul>

            <ul id="side_module_3" class="icon_sns_m">
            	<li><a href="javascript:;"><span>SNS</span></a></li>
                <ol>
                    <li><a href="sns_index.html">参照</a></li>
                    <li><a href="sns_form.html">登録</a></li>
                </ol>
            </ul>

            <ul id="side_module_4" class="icon_post_m">
            	<li><a href="javascript:;"><span>郵便番号DB</span></a></li>
                <ol>
                    <li><a href="post_setting.html">情報更新</a></li>
                </ol>
            </ul>

            <ul id="side_module_5" class="icon_item_m">
            	<li><a href="javascript:;"><span>商品管理</span></a></li>
                <ol>
                    <li><a href="item_index.html">商品検索</a></li>
                    <li><a href="tem_form.html">商品登録</a></li>
                    <li><a href="item_rank.html">ランキング</a></li>
                    <li><a href="item_setting.html">基本設定</a></li>
                </ol>
            </ul>

            <ul id="side_module_6" class="icon_order_m">
            	<li><a href="javascript:;"><span>注文管理</span></a></li>
                <ol>
                    <li><a href="order_index.html">履歴検索</a></li>
                    <li><a href="order_dl.html">注文データDL</a></li>
                    <li><a href="order_summary.html">売上集計</a></li>
                    <li><a href="order_setting.html">基本設定</a></li>
                </ol>
            </ul>

            <ul id="side_module_7" class="icon_user_m">
            	<li><a href="javascript:;"><span>会員管理</span></a></li>
                <ol>
                    <li><a href="user_index.html">会員検索</a></li>
                    <li><a href="user_form.html">会員登録</a></li>
                </ol>
            </ul>

            <ul id="side_module_8" class="icon_contact_m">
            	<li><a href="javascript:;"><span>お問合せ管理</span></a></li>
                <ol>
                    <li><a href="inquiry_index.html">総合お問い合わせ</a></li>
                    <li><a href="inquiry_order.html">注文お問い合わせ</a></li>
                </ol>
            </ul>

            <ul id="side_module_9" class="icon_news_m">
            	<li><a href="javascript:;"><span>ニュース管理</span></a></li>
                <ol>
                    <li><a href="news_index.html">ニュース検索</a></li>
                    <li><a href="news_form.html">新規登録</a></li>
                    <li><a href="news_setting.html">基本設定</a></li>
                    
                </ol>
            </ul>

            <ul id="side_module_10" class="icon_banner_m">
            	<li><a href="javascript:;"><span>バナー管理</span></a></li>
                <ol>
                    <li><a href="banner_index.html">スケジューラ</a></li>
                    <li><a href="banner_config.html">種別マスタ</a></li>
                </ol>
            </ul>
		</div>
    </aside>
    
    <article>
    	<h2><span>&nbsp;</span>会員管理<p><a href="javascript:;">Open Plugins</a></p></h2>
        <nav>
        	<ul>
				<li><a href="Home_User_index.html"><span>会員検索</span></a></li>
				<li class="active"><a href="user_regist.php"><span>会員登録</span></a></li>
			</ul>
        </nav>
		<section id="content">
			<h3>会員登録</h3>
			<?php if ($this->_tpl_vars['show_massg']): ?>
			
			<form name="fm" action="Home_User_regist.html" method="post" enctype="multipart/form-data">
				<h4><span>&nbsp;</span>基本情報</h4>
				<table class="formTable">
					<tbody>
						<tr>
							<th class="must1">状態</th>
							<td>
								<label><input type="radio" name="state" <?php if ($this->_tpl_vars['forms']['state'] == 1): ?>checked=true<?php endif; ?> value="1" />通常</label>
								<label><input type="radio" name="state" <?php if ($this->_tpl_vars['forms']['state'] == 2): ?>checked=true<?php endif; ?> value="2" />仮登録</label>
								<label><input type="radio" name="state" <?php if ($this->_tpl_vars['forms']['state'] == 3): ?>checked=true<?php endif; ?> value="3" />退会</label>
							<?php echo $this->_tpl_vars['err']['state']; ?>

							</td>
						</tr>
						<tr>
							<th class="must1">ID</th>
							<td>
							<input type="text" name="login_id" value="<?php echo $this->_tpl_vars['forms']['login_id']; ?>
" maxlangth="20"/>
							<?php echo $this->_tpl_vars['err']['login_id']; ?>
<?php echo $this->_tpl_vars['err']['login_id2']; ?>
</td>
						</tr>
						<tr>
							<th class="must1">パスワード</th>
							<td>
								<input type="text" name="login_pwd" class="text" value="<?php echo $this->_tpl_vars['forms']['login_pwd']; ?>
" />
								<?php echo $this->_tpl_vars['err']['login_pwd']; ?>

							</td>
						</tr>
						<tr>
							<th class="must1">会員氏名</th>
							<td>
								<input type="text" class="short" name="user_name1" value="<?php echo $this->_tpl_vars['forms']['user_name1']; ?>
" />
								<input type="text" class="short" name="user_name2" value="<?php echo $this->_tpl_vars['forms']['user_name2']; ?>
" />
								<?php echo $this->_tpl_vars['err']['user_name1']; ?>

								<?php echo $this->_tpl_vars['err']['user_name2']; ?>

							</td>
						</tr>
						<tr>
							<th class="must1">フリガナ</th>
							<td>
								<input type="text" class="short" name="user_name_furikana1" value="<?php echo $this->_tpl_vars['forms']['user_name_furikana1']; ?>
" />
								<input type="text" class="short" name="user_name_furikana2" value="<?php echo $this->_tpl_vars['forms']['user_name_furikana2']; ?>
" />
								<?php echo $this->_tpl_vars['err']['user_name_furikana1']; ?>

								<?php echo $this->_tpl_vars['err']['user_name_furikana2']; ?>

							</td>
						</tr>
						<tr>
							<th>貴医院名・貴技工所名</th>
							<td>
								<input type="text" class="text" name="workshop_name" value="<?php echo $this->_tpl_vars['forms']['workshop_name']; ?>
" /><?php echo $this->_tpl_vars['err']['workshop_name']; ?>

							</td>
						</tr>
						<tr>
							<th>フリガナ</th>
							<td>
								<input type="text" class="text" name="workshop_name_furikana" value="<?php echo $this->_tpl_vars['forms']['workshop_name_furikana']; ?>
" /><?php echo $this->_tpl_vars['err']['workshop_name_furikana']; ?>

							</td>
						</tr>
						<tr>
							<th class="must1">郵便番号</th>
							<td class="floats">
								<input type="text" name="zipcode1" class="short" value="<?php echo $this->_tpl_vars['forms']['zipcode1']; ?>
" />
								<span> - </span>
								<input type="text" name="zipcode2" class="short" value="<?php echo $this->_tpl_vars['forms']['zipcode2']; ?>
" />
								<span class="btn_blank">
								<a href="javascript:;" style="position:relative;top:-2px;" class="searchAddress">住所検索</a>
								</span>
								<?php echo $this->_tpl_vars['err']['zipcode']; ?>

								<?php echo $this->_tpl_vars['err']['zipcode1']; ?>

								<?php echo $this->_tpl_vars['err']['zipcode2']; ?>

							</td>
						</tr>
						<tr>
							<th class="must1">都道府県</th>
							<td>
						<select name="local_cd" id='select_id'>
	                       <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['dao_local'],'selected' => $this->_tpl_vars['forms']['local_name']), $this);?>

                        </select>
                         <?php echo $this->_tpl_vars['err']['local_cd']; ?>

							</td>
						</tr>
						<tr>
							<th class="must1">市区町村</th>
							<td>
								<input type="text" name="treet_name" id="treet_name"  class="text" value="<?php echo $this->_tpl_vars['forms']['treet_name']; ?>
" />
							<?php echo $this->_tpl_vars['err']['treet_name']; ?>

							</td>
						</tr>
						<tr>
							<th class="must1">以降の住所</th>
							<td>
							<input type="text" name="address" class="text" value="<?php echo $this->_tpl_vars['forms']['address']; ?>
" />
							<?php echo $this->_tpl_vars['err']['address']; ?>

							</td>
						</tr>
						<tr>
							<th class="must1">電話番号</th>
							<td>
								<input type="text" class="short" name="tel_number1" value="<?php echo $this->_tpl_vars['forms']['tel_number1']; ?>
" /> - 
								<input type="text" class="short" name="tel_number2" value="<?php echo $this->_tpl_vars['forms']['tel_number2']; ?>
" /> - 
								<input type="text" class="short" name="tel_number3" value="<?php echo $this->_tpl_vars['forms']['tel_number3']; ?>
" />
								<?php echo $this->_tpl_vars['err']['tel_number']; ?>

								<?php echo $this->_tpl_vars['err']['tel_number1']; ?>

								<?php echo $this->_tpl_vars['err']['tel_number2']; ?>

								<?php echo $this->_tpl_vars['err']['tel_number3']; ?>

							</td>
						</tr>
						<tr>
							<th>携帯電話番号</th>
							<td>
								<input type="text" class="short" name="mobile_number1" value="<?php echo $this->_tpl_vars['forms']['mobile_number1']; ?>
" /> - 
								<input type="text" class="short" name="mobile_number2" value="<?php echo $this->_tpl_vars['forms']['mobile_number2']; ?>
" /> - 
								<input type="text" class="short" name="mobile_number3" value="<?php echo $this->_tpl_vars['forms']['mobile_number3']; ?>
" />
							</td>
						</tr>
						<tr>
							<th class="must1">E-Mail</th>
							<td><input type="text" name="email" id="email" class="text" value="<?php echo $this->_tpl_vars['forms']['email']; ?>
" />
							<?php echo $this->_tpl_vars['err']['email']; ?>

							</td>
						</tr>
						<tr>
							<th>メルマガ購読（PC）</th>
							<td><label><input type="checkbox" name="send" <?php if ($this->_tpl_vars['forms']['send'] == 1): ?>checked="true"<?php endif; ?> value="1" />購読する</label></td>
						</tr>
						<tr>
						<tr>
							<th>生年月</th>
							<td class="floats">
				        <?php echo smarty_function_html_options(array('id' => 'year4','name' => 'year4','options' => $this->_tpl_vars['year4'],'selected' => $this->_tpl_vars['forms']['birthday_year']), $this);?>

						<?php echo smarty_function_html_options(array('id' => 'moon4','name' => 'moon4','options' => $this->_tpl_vars['moon4'],'selected' => $this->_tpl_vars['forms']['birthday_m']), $this);?>
	
							</td>
						</tr>
						<tr>
							<th>性別</th>
							<td>
								<label><input type="radio" name="sex" <?php if ($this->_tpl_vars['forms']['sex'] == 1): ?>checked=true<?php endif; ?> value="1" />女性</label>
								<label><input type="radio" name="sex" <?php if ($this->_tpl_vars['forms']['sex'] == 2): ?>checked=true<?php endif; ?> value="2" />男性</label>
								<label><input type="radio" name="sex" <?php if ($this->_tpl_vars['forms']['sex'] == 3): ?>checked=true<?php endif; ?> value="3" />指定なし</label>
							</td>
						</tr>
					</tbody>
				</table>
				
				<p class="button">
					<button type="submit" id="btn_update" class="submit"><span>登録</span></button>
				</p>
			</form>
		
		<?php else: ?>
			<p class="message"><?php echo $this->_tpl_vars['message']; ?>
</p>
			
			
			<ul class="result_btn clear" style="margin-top:20px;">
                <li><a href="<?php echo ((is_array($_tmp='Home/User/index')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
">一覧に戻る</a></li>
                <li><a href="<?php echo ((is_array($_tmp='Home/User/insert')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
">続けて新規登録する</a></li>
            <?php if (isset ( $this->_tpl_vars['forms']['id'] )): ?>
                <li><a href="<?php echo ((is_array($_tmp='Home/User/update')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
?id=<?php echo $this->_tpl_vars['forms']['id']; ?>
">登録した内容を更新する</a></li>
            <?php endif; ?>
        	</ul>
			
		<?php endif; ?>
		
		
		</section>
	</article>
</div><script type="text/javascript">
		$(function(){
	//search address
		$('.searchAddress').live('click',function(){
			var p = $(this).closest("td");
			var table = $(this).closest("table");
			var post1 = $('input[name=zipcode1]').val();
			var post2 = $('input[name=zipcode2]').val();
			if(post1 == "" || post2 == ""){return;}
			var post = post1 +""+ post2;
			zip2address(post, function(address) {
			if (address) {
				$("#treet_name").val(address.city);
				$("#uniform-select_id>span").text(address.pref);
				//$("#select_id ").val(address.index);
				$("#select_id").children().attr("selected",false);
				  $("#select_id").find("option[value='"+(address.index+1)+"']").attr("selected",true);
		
				
			}
			else {
				alert("見つかりませんでした。。\n入力した郵便番号に誤りがないか、お確かめ下さい。");
			}
		});
			
		});
		});
</script>
<footer id="dashboard_footer">Copyright (C) SHIFT. / All rights reserved.</footer>
</body>
</html>